<?php
/*
 *      counter.php
 *      
 *      Copyright 2011 godfather.typhoon.tycoon@banme <chungnguyenhuu911@gmail.com>
 *      
 *      This program is free software; you can redistribute it and/or modify
 *      it under the terms of the GNU General Public License as published by
 *      the Free Software Foundation; either version 2 of the License, or
 *      (at your option) any later version.
 *      
 *      This program is distributed in the hope that it will be useful,
 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *      GNU General Public License for more details.
 *      
 *      You should have received a copy of the GNU General Public License
 *      along with this program; if not, write to the Free Software
 *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 *      MA 02110-1301, USA.
 *      
 *      
 */

?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<div align="center">
	<?php 
		if(empty($counters)){
			echo $this->lang->line('lang.i18n.messages.form.empty');
			return;
		}
	?>

	<table border="0" cellspacing="4" cellpadding="0" width="60%">
		
		<tr>
			<th width="20%" ><?=$this->lang->line('lang.i18n.messages.object.id');?></th>
			<th><?=$this->lang->line('lang.i18n.messages.object.name');?></th>
			<th><?=$this->lang->line('lang.i18n.messages.object.name_en');?></th>
			<th colspan="2"><?=$this->lang->line('lang.i18n.messages.object.edit');?></th>
		</th>
		<?php
			
			foreach($counters as $counter){
			
		?>
		<tr align="left" valign="top">
			<td><?=$counter->id;?></td>
			<td><?=$counter->name;?></td>
			<td><?=$counter->name_en;?></td>
			<td colspan="2"><?=anchor('counter/edit/'.$counter->id, $this->lang->line('lang.i18n.messages.form.change'));?></td>
		</tr>
		<?php
			}
		?>
	</table>
</div>
